import request from '@/utils/request'

// 查询燃气事件列表
export function listGasEvent(query) {
  return request({
    url: '/device/gasEvent/list',
    method: 'get',
    params: query
  })
}

// 查询燃气事件详细
export function getGasEvent(id) {
  return request({
    url: '/device/gasEvent/' + id,
    method: 'get'
  })
}

// 新增燃气事件
export function addGasEvent(data) {
  return request({
    url: '/device/gasEvent',
    method: 'post',
    data: data
  })
}

// 修改燃气事件
export function updateGasEvent(data) {
  return request({
    url: '/device/gasEvent',
    method: 'put',
    data: data
  })
}

// 删除燃气事件
export function delGasEvent(id) {
  return request({
    url: '/device/gasEvent/' + id,
    method: 'delete'
  })
}
